package api

import (
	"zinx_websokect_poker/zinx/ziface"
	"zinx_websokect_poker/zinx_app/poker_game/core"
)

func getOcc(request ziface.IRequest) *core.Occupant{
	p, _ := request.GetConnection().GetProperty("Pid")
	pid := p.(uint32)
	o := core.OccupantMgrObj.GetOccupantByPid(pid)

	return o
}
